package com.lizhen.behaviorpattern.commmandpattern.impl;

import com.lizhen.behaviorpattern.commmandpattern.Order;
import com.lizhen.behaviorpattern.commmandpattern.Stock;

public class BuyStock implements Order {
    private Stock abcStock;

    public BuyStock(Stock abcStock) {
        this.abcStock = abcStock;
    }

    public void execute() {
        this.abcStock.buy();
    }
}
